﻿using System;
using System.Collections.Generic;
using System.Text;
using Tao.OpenGl;
using Tao.Platform.Windows;

namespace TaoGL_UserControl
{

    class Game : InExPro
    {
        BgImage m_BgImage;
        Piano m_Piano;
        //FileMgr m_FileMgr;


        public Game()
        {
            TexMgr.Init();
            m_BgImage = new BgImage();
            m_Piano = new Piano();
            //m_FileMgr = new FileMgr();
            //m_FileMgr.LoadMbxFile("tm1.mbx");


        }
        //======================================================================
        public void Draw()
        {
            Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT);
            Gl.glLoadIdentity();
            m_BgImage.Draw();
            m_Piano.Draw();

        }

        public void Process(int tm)
        {
            m_Piano.Process(tm);
        }
    }
}



